import request from '@/utils/request'

export function listgoodClass(query) {
  return request({
    url: '/material/goodClass/list',
    method: 'get',
    params: query
  })
}

export function creategoodClass(data) {
  return request({
    url: '/material/goodClass/create',
    method: 'post',
    data
  })
}

export function readgoodClass(data) {
  return request({
    url: '/material/goodClass/get/' + data.id,
    method: 'get'
  })
}

export function updategoodClass(data) {
  return request({
    url: '/material/goodClass/update',
    method: 'post',
    data
  })
}

export function deletegoodClass(data) {
  return request({
    url: '/material/goodClass/delete/' + data.fclassstno,
    method: 'delete'
  })
}
